{include file="pub_header.htm"}
<div class="out_table">
<table width="100%" cellpadding="6" cellspacing="6" border="0" align="center" class="frame_table">
  <tr>
    <td width="20%" align="center" valign="top" bgcolor="#EEEEEE">
      {include file="pub_submenu.htm"}
    </td>
    <td width="80%" align="center" valign="top" bgcolor="#FFFFFF">

      {if $get.ope == "add"}
      <div class="right_table">
      <table width="100%" cellpadding="3" cellspacing="0" border="0" align="center" class="current_place">
        <tr>
          <td align="left" nowrap>&nbsp;
            <a href="{$control_admin}" target="_self" class="current_place">后台管理</a>
            &raquo; <a href="{$control_admin}?act=content&channel_id=0" target="_self" class="current_place">内容管理</a>
            {foreach name=channel_path from=$channel_path item=channel_path}
            &raquo; <a href="{$control_admin}?act=content&channel_id={$channel_path.id}" target="_self" class="current_place">{$channel_path.name|str_entag:'space,br'}</a>
            {/foreach}
          </td>
          <td align="right" nowrap>
            [
            <a href="{$control_admin}?act=content&ope=add&channel_id={$get.channel_id}&pag={$get.pag}" target="_self" class="current_place">添加内容</a>
            <a href="{$control_admin}?act=content&pag={$get.pag}" target="_self" class="current_place">内容列表</a>
            ]
          </td>
        </tr>
      </table>
      </div>

      <div class="space"></div>
      <div class="right_table">
      <form id="content_add" name="content_add" method="post" action="javascript:void(null);" enctype="multipart/form-data">
      <table width="100%" cellpadding="3" cellspacing="0" border="0" align="center" class="block_group">
        <tr align="left" class="block_header">
          <td colspan="4">添加内容</td>
        </tr>
        <tr align="left">
          <td width="10%" class="block_left" nowrap>ID</td>
          <td width="90%" class="block_right" colspan="3" nowrap>{$content_info.content.content_id}</td>
        </tr>
        <tr align="left">
          <td class="block_left" nowrap>所属频道</td>
          <td class="block_right" colspan="3" nowrap>
          <table cellspacing="0" cellpadding="1" border="0">
            <tr>
              <td valign="top">
                <select id="content[channel]" name="content[channel]" size="1" style="height:20px;" multiple="multiple" class="select">
                  {foreach name=channel_tree from=$channel_tree item=channel_tree}
                    {if $channel_tree.disable=="1"}
                    <optgroup label="{$channel_tree.name|indent:$channel_tree.depth:"&nbsp;&nbsp;&nbsp;&nbsp;"}"></optgroup>
                    {elseif $channel_tree.id|in_array:$channel_list}
                    <option value="{$channel_tree.id}" selected="selected">{$channel_tree.name|indent:$channel_tree.depth:"&nbsp;&nbsp;&nbsp;&nbsp;"}</option>
                    {else}
                    <option value="{$channel_tree.id}">{$channel_tree.name|indent:$channel_tree.depth:"&nbsp;&nbsp;&nbsp;&nbsp;"}</option>
                    {/if}
                  {/foreach}
                </select>
              </td>
              <td valign="top">
                <span style="cursor:pointer;color:#FF3300;" onclick="xajax_set_value('assign','content[channel]','200px','style.height');"><img src="{$dir_images_admin}/submenu_spread.gif" border="0" title="spread" alt="spread" /></span>
                <span style="cursor:pointer;color:#FF3300;" onclick="xajax_set_value('assign','content[channel]','20px','style.height');"><img src="{$dir_images_admin}/submenu_shrink.gif" border="0" title="shrink" alt="shrink" /></span>
              </td>
              <td valign="top">
                [点击+可展开,按Ctrl可选择多个类别]
                <span id="content[channel]_return" class="prompt"><span class="prompt_primal"></span></span>
              </td>
            </tr>
          </table>
          </td>
        </tr>
        <tr align="left">
          <td class="block_left" nowrap>
          <table border="0" cellspacing="0" cellpadding="3" align="right">
            <tr>
              <td rowspan="2" nowrap>标题</td>
              <td nowrap bgcolor="#CCCCCC">简短</td>
            </tr>
            <tr>
              <td nowrap bgcolor="#CCCCCC">完整</td>
            </tr>
          </table>
          </td>
          <td class="block_right" colspan="3" nowrap>
          <table width="100%" border="0" cellspacing="0" cellpadding="1">
            <tr>
              <td nowrap>
              <input type="text" id="content[phrase]" name="content[phrase]" maxlength="255" size="80" value=""
                style="font-family: 'Tahoma', 'Arial', 'Helvetica', 'sans-serif';
                       font-size: 12px;
                       color: #000000;
                       width: 420px;
                       height: 18px;
                       border: 1px solid #B9CFF0;
                       background-color: #FFFFFF;
                       background: url('{$dir_images_admin}/phrase_bg.gif');
                       background-repeat: repeat-x;
                       background-position: left center;">
              <select id="content[color]" name="content[color]" class="select" style="width:60px;">
                <option value="">颜色</option>
                {foreach name=content_color from=$select_option.content_color item=content_color}
                  <option value="{$content_color.id}" style="background-color:{$content_color.value}">{$content_color.name}</option>
                {/foreach}
              </select>
              <select id="content[fontstyle]" name="content[fontstyle]" class="select" style="width:60px;">
                <option value="">风格</option>
                {foreach name=content_fontstyle from=$select_option.content_fontstyle item=content_fontstyle}
                  <option value="{$content_fontstyle.id}" style="{$content_fontstyle.value}">{$content_fontstyle.name}</option>
                {/foreach}
              </select>
              <select id="content[decoration]" name="content[decoration]" class="select" style="width:60px;">
                <option value="">修饰</option>
                {foreach name=content_decoration from=$select_option.content_decoration item=content_decoration}
                  <option value="{$content_decoration.id}" style="{$content_decoration.value}">{$content_decoration.name}</option>
                {/foreach}
              </select>
              <span id="content[phrase]_return" class="prompt"><span class="prompt_primal"></span></span>
              </td>
            </tr>
            <tr>
              <td nowrap>
                <input type="text" id="content[subject]" name="content[subject]" maxlength="255" size="120" style="width:620px;" value="" class="input">
                <span id="content[subject]_return" class="prompt"><span class="prompt_primal"></span></span>
              </td>
            </tr>
          </table>
          </td>
        </tr>
        <tr align="left">
          <td class="block_left">属性</td>
          <td class="block_right" colspan="3">
            {foreach name=content_prefix from=$select_option.content_prefix item=content_prefix}
              <input type="checkbox" id="content[prefix][]" name="content[prefix][]" value="{$content_prefix.id}">{$content_prefix.name}
            {/foreach}
            <span id="content[prefix]_return" class="prompt"><span class="prompt_primal"></span></span>
          </td>
        </tr>
        <tr align="left">
          <td width="10%" class="block_left">作者</td>
          <td width="40%" class="block_right"><input type="text" id="content[author]" name="content[author]" maxlength="60" size="47" style="width:255px;" value="" class="input"><span id="content[author]_return" class="prompt"><span class="prompt_primal"></span></span></td>
          <td width="10%" class="block_left">来源</td>
          <td width="40%" class="block_right"><input type="text" id="content[excerpt]" name="content[excerpt]" maxlength="60" size="47" style="width:255px;" value="" class="input"><span id="content[excerpt]_return" class="prompt"><span class="prompt_primal"></span></span></td>
        </tr>
        <tr align="left">
          <td width="10%" class="block_left">模板</td>
          <td width="40%" class="block_right"><input type="text" id="content[template_content]" name="content[template_content]" maxlength="60" size="47" style="width:255px;" value="" class="input"><span id="content[template_content]_return" class="prompt"><span class="prompt_primal"></span></span></td>
          <td width="10%" class="block_left">点击</td>
          <td width="40%" class="block_right"><input type="text" id="content[click]" name="content[click]" maxlength="60" size="47" style="width:255px;" value="0" class="input"><span id="content[click]_return" class="prompt"><span class="prompt_primal"></span></span></td>
        </tr>
        <tr align="left">
          <td class="block_left">关键字</td>
          <td class="block_right" colspan="3"><input type="text" id="content[keyword]" name="content[keyword]" maxlength="255" size="120" style="width:620px;" value="" class="input"><span id="content[keyword]_return" class="prompt"><span class="prompt_primal"></span></span></td>
        </tr>
        <tr align="left">
          <td class="block_left">封面图片</td>
          <td class="block_right" colspan="3">
          <table width="100%" border="0" cellspacing="0" cellpadding="1" bgcolor="#FDF4E3">
            <tr>
              <td colspan="4" align="left">
                允许的文件类型:[{$setting_cover.type|implode_str:"|"}]
              </td>
            </tr>
            <tr>
              <td width="10%" rowspan="2" align="center"><span id="cover_str" name="cover_str">{$cover_str}</span></td>
              <td width="20%" align="left">
                <span id="cover_upload_input" name="cover_upload_input">
                  <input type="file" id="cover_upload" name="cover_upload" size="30" style="width:250px;" class="input" />
                </span>
              </td>
              <td width="10%" align="left">
                <input type="button" id="cover_upload_submit" name="cover_upload_submit" value="本地上传" class="button" onClick="xajax.$('cover_upload_submit').disabled=true;xajax_upload_submit('content_add','{$control_admin}?act=content&ope=savecover_upload&type=add&admin_id={$admin.mid}','cover_upload_prompt');">
              </td>
              <td width="60%" align="left">
                <span id="cover_upload_prompt" name="cover_upload_prompt"></span>
              </td>
            </tr>
            <tr>
              <td width="30%" align="left">
                <span id="cover_get_input" name="cover_get_input">
                  <input type="text" id="cover_get" name="cover_get" size="45" style="width:250px;" class="input" />
                </span>
              </td>
              <td width="10%" align="left">
                <input type="button" id="cover_get_submit" name="cover_get_submit" value="地址获取" class="button" onClick="xajax.$('cover_get_submit').disabled=true;xajax_cover_get('add','{$admin.mid}','cover_get',cover_get.value,'cover_get_submit','cover_str','cover_get_prompt');">
              </td>
              <td width="60%" align="left">
                <span id="cover_get_prompt" name="cover_get_prompt"></span>
              </td>
            </tr>
          </table>
          </td>
        </tr>
        <tr align="left">
          <td class="block_left">简介</td>
          <td class="block_right" colspan="3"><textarea id="content[brief]" name="content[brief]" rows="3" cols="120" style="width:620px;" class="textarea"></textarea><span id="content[brief]_return" class="prompt"><span class="prompt_primal"></span></span></td>
        </tr>
        <tr align="left">
          <td class="block_left">排序</td>
          <td class="block_right" colspan="3">
            <input type="text" id="content[rank]" name="content[rank]" maxlength="11" size="20" style="width:120px;" value="0" class="input"><span id="content[rank]_return" class="prompt"><span class="prompt_primal"></span></span>
          </td>
        </tr>
        <tr align="left">
          <td class="block_left">横向分类</td>
          <td class="block_right" colspan="3">
          {foreach name=trans_group_list from=$trans_list item=trans_group}
          <select id="content[trans][{$trans_group.id}]" name="content[trans][{$trans_group.id}]" class="select">
            <option value="">= {$trans_group.name|str_entag:'space,br'} =</option>
            {foreach name=trans_list from=$trans_group.trans item=trans}
              <option value="{$trans.id}">{$trans.name|str_entag:'space,br'}</option>
            {/foreach}
          </select>
          <span id="content[trans][{$trans_group.id}]_return" class="prompt"><span class="prompt_primal"></span></span>
          {/foreach}
          </td>
        </tr>
        <tr align="left">
          <td class="block_left">是否开启</td>
          <td class="block_right" colspan="3">
            <select id="content[if_enable]" name="content[if_enable]" class="select" style="width:60px;" onchange="xajax_content_if_enable('if_enable_time', this.value);">
              <option value="1" selected="selected">是</option>
              <option value="2">否</option>
              <option value="3">定时</option>
            </select>
            <span id="if_enable_time" style="display:none">
              开始:<input type="text" id="content[if_enable_begin]" name="content[if_enable_begin]" size="10" style="width:70px;" maxlength="10" value="" class="input" />
              结束:<input type="text" id="content[if_enable_end]" name="content[if_enable_end]" size="10" style="width:70px;" maxlength="10" value="" class="input" />
            </span>
            <span id="content[if_enable]_return" class="prompt"><span class="prompt_primal"></span></span>
          </td>
        </tr>
        <tr align="left">
          <td class="block_left">是否置顶</td>
          <td class="block_right" colspan="3">
            <select id="content[if_top]" name="content[if_top]" class="select" style="width:60px;" onchange="xajax_content_if_top('if_top_time', this.value);">
              <option value="1">是</option>
              <option value="2" selected="selected">否</option>
              <option value="3">定时</option>
            </select>
            <span id="if_top_time" style="display:none">
              开始:<input type="text" id="content[if_top_begin]" name="content[if_top_begin]" size="10" style="width:70px;" maxlength="10" value="" class="input" />
              结束:<input type="text" id="content[if_top_end]" name="content[if_top_end]" size="10" style="width:70px;" maxlength="10" value="" class="input" />
            </span>
            <span id="content[if_top]_return" class="prompt"><span class="prompt_primal"></span></span>
          </td>
        </tr>
        <tr align="left">
          <td class="block_left">允许查看</td>
          <td class="block_right" colspan="3">
            <select id="content[if_view]" name="content[if_view]" class="select" style="width:60px;" onchange="xajax_content_if_view('if_view_other', this.value);">
              <option value="1" selected="selected">开启</option>
              <option value="2">关闭</option>
            </select>
            <span id="if_view_other" style="display:none">
              权限:
              <select id="content[if_view_privilege]" name="content[if_view_privilege]" class="select" style="width:60px;" class="select">
                <option value="1" selected="selected">游客</option>
                <option value="2">登录</option>
              </select>
            </span>
            <span id="content[if_view]_return" class="prompt"><span class="prompt_primal"></span></span>
          </td>
        </tr>
        <tr align="left">
          <td class="block_left">交互信息</td>
          <td class="block_right" colspan="3">
            <select id="content[if_inerface]" name="content[if_inerface]" class="select" style="width:60px;" onchange="xajax_content_if_inerface('if_inerface_other', this.value);">
              <option value="1" selected="selected">开启</option>
              <option value="2">关闭</option>
            </select>
            <span id="if_inerface_other" style="display:none">
              身份
              <select id="content[if_inerface_identity]" name="content[if_inerface_identity]" class="select" style="width:60px;" class="select">
                <option value="1">匿名</option>
                <option value="2" selected="selected">实名</option>
              </select>
              审核
              <select id="content[if_inerface_check]" name="content[if_inerface_check]" class="select" style="width:60px;" class="select">
                <option value="1" selected="selected">直接</option>
                <option value="2">审核</option>
              </select>
              权限:
              <select id="content[if_inerface_privilege]" name="content[if_inerface_privilege]" class="select" style="width:60px;" class="select">
                <option value="1">游客</option>
                <option value="2" selected="selected">登录</option>
              </select>
            </span>
            <span id="content[if_inerface]_return" class="prompt"><span class="prompt_primal"></span></span>
          </td>
        </tr>
        <tr align="left">
          <td class="block_left">跳转地址</td>
          <td class="block_right" colspan="3">
            <input type="checkbox" id="content[if_turn]" name="content[if_turn]" value="1" onclick="xajax_content_if_turn('content[if_turn_detail]', this.checked, 'form_detail');">
            <span id="content[if_turn_detail]" style="display:none;">
              <select id="content[if_turn_type]" name="content[if_turn_type]" class="select" style="width:70px;">
                <option value="1" selected="selected">_self</option>
                <option value="2">_blank</option>
              </select>
              <input type="text" id="content[if_turn_url]" name="content[if_turn_url]" size="100" style="width:520px;" maxlength="255" value="" class="input" />
            </span>
            <span id="content[if_turn_detail]_return" class="prompt"><span class="prompt_primal"></span></span>
          </td>
        </tr>
        <tr>
          <td colspan="4" class="block_right">
          <!-- form_detail begin -->
          <div id="form_detail" {if $content_info.content.if_turn == "1"}style="display:none;"{/if}>

            <div id="area_model_single"></div>

            <div id="area_model_multi"></div>

          </div>
          <!-- form_detail end -->
          </td>
        </tr>
        <tr>
          <td colspan="4" align="center" class="block_footer">
            <div id="area_content_submit" name="area_content_submit"></div>
          </td>
        </tr>
      </table>
      </form>
      </div>
      {elseif $get.ope == "amend"}
      <div class="right_table">
      <table width="100%" cellpadding="3" cellspacing="0" border="0" align="center" class="current_place">
        <tr>
          <td align="left" nowrap>&nbsp;
            <a href="{$control_admin}" target="_self" class="current_place">后台管理</a>
            &raquo; <a href="{$control_admin}?act=content&channel_id=0" target="_self" class="current_place">内容管理</a>
            {foreach name=channel_path from=$channel_path item=channel_path}
            &raquo; <a href="{$control_admin}?act=content&channel_id={$channel_path.id}" target="_self" class="current_place">{$channel_path.name|str_entag:'space,br'}</a>
            {/foreach}
          </td>
          <td align="right" nowrap>
            [
            <a href="{$control_admin}?act=content&ope=add&channel_id={$channel_info.channel_id}&pag={$get.pag}" target="_self" class="current_place">添加内容</a>
            <a href="{$control_admin}?act=content&pag={$get.pag}" target="_self" class="current_place">内容列表</a>
            ]
          </td>
        </tr>
      </table>
      </div>

      <div class="space"></div>
      <div class="right_table">
      <form id="content_amend" name="content_amend" method="post" action="javascript:void(null);" enctype="multipart/form-data">
      <table width="100%" cellpadding="3" cellspacing="0" border="0" align="center" class="block_group">
        <tr align="left" class="block_header">
          <td colspan="4">编辑内容</td>
        </tr>
        <tr align="left">
          <td width="10%" class="block_left" nowrap>ID</td>
          <td width="90%" class="block_right" colspan="3" nowrap>{$content_info.content.content_id}</td>
        </tr>
        <tr align="left">
          <td class="block_left" nowrap>所属频道</td>
          <td class="block_right" colspan="3" nowrap>
          <table cellspacing="0" cellpadding="1" border="0">
            <tr>
              <td valign="top">
                <select id="content[channel]" name="content[channel]" size="1" style="height:20px;" multiple="multiple" class="select">
                  {foreach name=channel_tree from=$channel_tree item=channel_tree}
                    {if $channel_tree.disable=="1"}
                    <optgroup label="{$channel_tree.name|indent:$channel_tree.depth:"&nbsp;&nbsp;&nbsp;&nbsp;"}"></optgroup>
                    {elseif $channel_tree.id|in_array:$channel_list}
                    <option value="{$channel_tree.id}" selected="selected">{$channel_tree.name|indent:$channel_tree.depth:"&nbsp;&nbsp;&nbsp;&nbsp;"}</option>
                    {else}
                    <option value="{$channel_tree.id}">{$channel_tree.name|indent:$channel_tree.depth:"&nbsp;&nbsp;&nbsp;&nbsp;"}</option>
                    {/if}
                  {/foreach}
                </select>
              </td>
              <td valign="top">
                <span style="cursor:pointer;color:#FF3300;" onclick="xajax_set_value('assign','content[channel]','200px','style.height');"><img src="{$dir_images_admin}/submenu_spread.gif" border="0" title="spread" alt="spread" /></span>
                <span style="cursor:pointer;color:#FF3300;" onclick="xajax_set_value('assign','content[channel]','20px','style.height');"><img src="{$dir_images_admin}/submenu_shrink.gif" border="0" title="shrink" alt="shrink" /></span>
              </td>
              <td valign="top">
                [点击+可展开,按Ctrl可选择多个类别]
                <span id="content[channel]_return" class="prompt"><span class="prompt_primal"></span></span>
              </td>
            </tr>
          </table>
          </td>
        </tr>
        <tr align="left">
          <td class="block_left" nowrap>
          <table border="0" cellspacing="0" cellpadding="3" align="right">
            <tr>
              <td rowspan="2" nowrap>标题</td>
              <td nowrap bgcolor="#CCCCCC">简短</td>
            </tr>
            <tr>
              <td nowrap bgcolor="#CCCCCC">完整</td>
            </tr>
          </table>
          </td>
          <td class="block_right" colspan="3" nowrap>
          <table width="100%" border="0" cellspacing="0" cellpadding="1">
            <tr>
              <td nowrap>
              <input type="text" id="content[phrase]" name="content[phrase]" maxlength="255" size="80" value="{$content_info.content.phrase}"
                style="font-family: 'Tahoma', 'Arial', 'Helvetica', 'sans-serif';
                       font-size: 12px;
                       color: #000000;
                       width: 420px;
                       height: 18px;
                       border: 1px solid #B9CFF0;
                       background-color: #FFFFFF;
                       background: url('{$dir_images_admin}/phrase_bg.gif');
                       background-repeat: repeat-x;
                       background-position: left center;">
              <select id="content[color]" name="content[color]" class="select" style="width:60px;">
                <option value="">颜色</option>
                {foreach name=content_color from=$select_option.content_color item=content_color}
                  {if $content_color.id == $content_info.content.color}
                  <option value="{$content_color.id}" style="background-color:{$content_color.value}" selected="selected">{$content_color.name}</option>
                  {else}
                  <option value="{$content_color.id}" style="background-color:{$content_color.value}">{$content_color.name}</option>
                  {/if}
                {/foreach}
              </select>
              <select id="content[fontstyle]" name="content[fontstyle]" class="select" style="width:60px;">
                <option value="">风格</option>
                {foreach name=content_fontstyle from=$select_option.content_fontstyle item=content_fontstyle}
                  {if $content_fontstyle.id == $content_info.content.fontstyle}
                  <option value="{$content_fontstyle.id}" style="{$content_fontstyle.value}" selected="selected">{$content_fontstyle.name}</option>
                  {else}
                  <option value="{$content_fontstyle.id}" style="{$content_fontstyle.value}">{$content_fontstyle.name}</option>
                  {/if}
                {/foreach}
              </select>
              <select id="content[decoration]" name="content[decoration]" class="select" style="width:60px;">
                <option value="">修饰</option>
                {foreach name=content_decoration from=$select_option.content_decoration item=content_decoration}
                  {if $content_decoration.id == $content_info.content.decoration}
                  <option value="{$content_decoration.id}" style="{$content_decoration.value}" selected="selected">{$content_decoration.name}</option>
                  {else}
                  <option value="{$content_decoration.id}" style="{$content_decoration.value}">{$content_decoration.name}</option>
                  {/if}
                {/foreach}
              </select>
              <span id="content[phrase]_return" class="prompt"><span class="prompt_primal"></span></span>
              </td>
            </tr>
            <tr>
              <td nowrap>
                <input type="text" id="content[subject]" name="content[subject]" maxlength="255" size="120" style="width:620px;" value="{$content_info.content.subject|str_entag:'space,br'}" class="input">
                <span id="content[subject]_return" class="prompt"><span class="prompt_primal"></span></span>
              </td>
            </tr>
          </table>
          </td>
        </tr>
        <tr align="left">
          <td class="block_left">属性</td>
          <td class="block_right" colspan="3">
            {foreach name=content_prefix from=$select_option.content_prefix item=content_prefix}
              <input type="checkbox" id="content[prefix][]" name="content[prefix][]" value="{$content_prefix.id}" {if $content_prefix.id|in_array:$content_info.content.prefix}checked="checked"{/if}>{$content_prefix.name}
            {/foreach}
            <span id="content[prefix]_return" class="prompt"><span class="prompt_primal"></span></span>
          </td>
        </tr>
        <tr align="left">
          <td width="10%" class="block_left">作者</td>
          <td width="40%" class="block_right"><input type="text" id="content[author]" name="content[author]" maxlength="60" size="47" style="width:255px;" value="{$content_info.content.author}" class="input"><span id="content[author]_return" class="prompt"><span class="prompt_primal"></span></span></td>
          <td width="10%" class="block_left">来源</td>
          <td width="40%" class="block_right"><input type="text" id="content[excerpt]" name="content[excerpt]" maxlength="60" size="47" style="width:255px;" value="{$content_info.content.excerpt}" class="input"><span id="content[excerpt]_return" class="prompt"><span class="prompt_primal"></span></span></td>
        </tr>
        <tr align="left">
          <td width="10%" class="block_left">模板</td>
          <td width="40%" class="block_right"><input type="text" id="content[template_content]" name="content[template_content]" maxlength="60" size="47" style="width:255px;" value="{$content_info.content.template_content}" class="input"><span id="content[template_content]_return" class="prompt"><span class="prompt_primal"></span></span></td>
          <td width="10%" class="block_left">点击</td>
          <td width="40%" class="block_right"><input type="text" id="content[click]" name="content[click]" maxlength="60" size="47" style="width:255px;" value="{$content_info.content.click}" class="input"><span id="content[click]_return" class="prompt"><span class="prompt_primal"></span></span></td>
        </tr>
        <tr align="left">
          <td class="block_left">关键字</td>
          <td class="block_right" colspan="3"><input type="text" id="content[keyword]" name="content[keyword]" maxlength="255" size="120" style="width:620px;" value="{$content_info.content.keyword}" class="input"><span id="content[keyword]_return" class="prompt"><span class="prompt_primal"></span></span></td>
        </tr>
        <tr align="left">
          <td class="block_left">封面图片</td>
          <td class="block_right" colspan="3">
          <table width="100%" border="0" cellspacing="0" cellpadding="1" bgcolor="#FDF4E3">
            <tr>
              <td colspan="4" align="left">
                允许的文件类型:[{$setting_cover.type|implode_str:"|"}]
              </td>
            </tr>
            <tr>
              <td width="10%" rowspan="2" align="center"><span id="cover_str" name="cover_str">{$cover_str}</span></td>
              <td width="20%" align="left">
                <span id="cover_upload_input" name="cover_upload_input">
                  <input type="file" id="cover_upload" name="cover_upload" size="30" style="width:250px;" class="input" />
                </span>
              </td>
              <td width="10%" align="left">
                <input type="button" id="cover_upload_submit" name="cover_upload_submit" value="本地上传" class="button" onClick="xajax.$('cover_upload_submit').disabled=true;xajax_upload_submit('content_amend','{$control_admin}?act=content&ope=savecover_upload&type=amend&scheduler_id={$scheduler_info.scheduler_id}','cover_upload_prompt');">
              </td>
              <td width="60%" align="left">
                <span id="cover_upload_prompt" name="cover_upload_prompt"></span>
              </td>
            </tr>
            <tr>
              <td width="30%" align="left">
                <span id="cover_get_input" name="cover_get_input">
                  <input type="text" id="cover_get" name="cover_get" size="45" style="width:250px;" class="input" />
                </span>
              </td>
              <td width="10%" align="left">
                <input type="button" id="cover_get_submit" name="cover_get_submit" value="地址获取" class="button" onClick="xajax.$('cover_get_submit').disabled=true;xajax_cover_get('amend','{$content_info.content.content_id}','cover_get',cover_get.value,'cover_get_submit','cover_str','cover_get_prompt');">
              </td>
              <td width="60%" align="left">
                <span id="cover_get_prompt" name="cover_get_prompt"></span>
              </td>
            </tr>
          </table>
          </td>
        </tr>
        <tr align="left">
          <td class="block_left">简介</td>
          <td class="block_right" colspan="3"><textarea id="content[brief]" name="content[brief]" rows="3" cols="120" style="width:620px;" class="textarea">{$content_info.content.brief|str_entag}</textarea><span id="content[brief]_return" class="prompt"><span class="prompt_primal"></span></span></td>
        </tr>
        <tr align="left">
          <td class="block_left">排序</td>
          <td class="block_right" colspan="3">
            <input type="text" id="content[rank]" name="content[rank]" maxlength="11" size="20" style="width:120px;" value="{$content_info.content.rank}" class="input"><span id="content[rank]_return" class="prompt"><span class="prompt_primal"></span></span>
          </td>
        </tr>
        <tr align="left">
          <td class="block_left">横向分类</td>
          <td class="block_right" colspan="3">
          {foreach name=trans_group_list from=$trans_list item=trans_group}
          <select id="content[trans][{$trans_group.id}]" name="content[trans][{$trans_group.id}]" class="select">
            <option value="">= {$trans_group.name|str_entag:'space,br'} =</option>
            {foreach name=trans_list from=$trans_group.trans item=trans}
              {if $content_info.trans[$trans_group.id].trans_id == $trans.id}
              <option value="{$trans.id}" selected="selected">{$trans.name|str_entag:'space,br'}</option>
              {else}
              <option value="{$trans.id}">{$trans.name|str_entag:'space,br'}</option>
              {/if}
            {/foreach}
          </select>
          <span id="content[trans][{$trans_group.id}]_return" class="prompt"><span class="prompt_primal"></span></span>
          {/foreach}
          </td>
        </tr>
        <tr align="left">
          <td class="block_left">是否开启</td>
          <td class="block_right" colspan="3">
            <select id="content[if_enable]" name="content[if_enable]" class="select" style="width:60px;" onchange="xajax_content_if_enable('if_enable_time', this.value);">
              <option value="1" {if $content_info.content.if_enable != "2" && $content_info.content.if_enable != "3" }selected="selected"{/if}>是</option>
              <option value="2" {if $content_info.content.if_enable == "2"}selected="selected"{/if}>否</option>
              <option value="3" {if $content_info.content.if_enable == "3"}selected="selected"{/if}>定时</option>
            </select>
            <span id="if_enable_time" style="display:none">
              开始:<input type="text" id="content[if_enable_begin]" name="content[if_enable_begin]" size="10" style="width:70px;" maxlength="10" value="{$content_info.content.if_enable_begin|format_date:'%Y-%m-%d'}" class="input" />
              结束:<input type="text" id="content[if_enable_end]" name="content[if_enable_end]" size="10" style="width:70px;" maxlength="10" value="{$content_info.content.if_enable_end|format_date:'%Y-%m-%d'}" class="input" />
            </span>
            <span id="content[if_enable]_return" class="prompt"><span class="prompt_primal"></span></span>
          </td>
        </tr>
        <tr align="left">
          <td class="block_left">是否置顶</td>
          <td class="block_right" colspan="3">
            <select id="content[if_top]" name="content[if_top]" class="select" style="width:60px;" onchange="xajax_content_if_top('if_top_time', this.value);">
              <option value="1" {if $content_info.content.if_top == "1"}selected="selected"{/if}>是</option>
              <option value="2" {if $content_info.content.if_top != "1" && $content_info.content.if_top != "3"}selected="selected"{/if}>否</option>
              <option value="3" {if $content_info.content.if_top == "3"}selected="selected"{/if}>定时</option>
            </select>
            <span id="if_top_time" style="display:none">
              开始:<input type="text" id="content[if_top_begin]" name="content[if_top_begin]" size="10" style="width:70px;" maxlength="10" value="{$content_info.content.if_top_begin|format_date:'%Y-%m-%d'}" class="input" />
              结束:<input type="text" id="content[if_top_end]" name="content[if_top_end]" size="10" style="width:70px;" maxlength="10" value="{$content_info.content.if_top_end|format_date:'%Y-%m-%d'}" class="input" />
            </span>
            <span id="content[if_top]_return" class="prompt"><span class="prompt_primal"></span></span>
          </td>
        </tr>
        <tr align="left">
          <td class="block_left">允许查看</td>
          <td class="block_right" colspan="3">
            <select id="content[if_view]" name="content[if_view]" class="select" style="width:60px;" onchange="xajax_content_if_view('if_view_other', this.value);">
              <option value="1" {if $content_info.content.if_view == "1"}selected="selected"{/if}>开启</option>
              <option value="2" {if $content_info.content.if_view != "1"}selected="selected"{/if}>关闭</option>
            </select>
            <span id="if_view_other" style="display:none">
              权限:
              <select id="content[if_view_privilege]" name="content[if_view_privilege]" class="select" style="width:60px;" class="select">
                <option value="1" {if $content_info.content.if_view_privilege == "1"}selected="selected"{/if}>游客</option>
                <option value="2" {if $content_info.content.if_view_privilege != "1"}selected="selected"{/if}>登录</option>
              </select>
            </span>
            <span id="content[if_view]_return" class="prompt"><span class="prompt_primal"></span></span>
          </td>
        </tr>
        <tr align="left">
          <td class="block_left">交互信息</td>
          <td class="block_right" colspan="3">
            <select id="content[if_inerface]" name="content[if_inerface]" class="select" style="width:60px;" onchange="xajax_content_if_inerface('if_inerface_other', this.value);">
              <option value="1" {if $content_info.content.if_inerface == "1"}selected="selected"{/if}>开启</option>
              <option value="2" {if $content_info.content.if_inerface != "1"}selected="selected"{/if}>关闭</option>
            </select>
            <span id="if_inerface_other" style="display:none">
              身份
              <select id="content[if_inerface_identity]" name="content[if_inerface_identity]" class="select" style="width:60px;" class="select">
                <option value="1" {if $content_info.content.if_inerface_identity == "1"}selected="selected"{/if}>匿名</option>
                <option value="2" {if $content_info.content.if_inerface_identity != "1"}selected="selected"{/if}>实名</option>
              </select>
              审核
              <select id="content[if_inerface_check]" name="content[if_inerface_check]" class="select" style="width:60px;" class="select">
                <option value="1" {if $content_info.content.if_inerface_check == "1"}selected="selected"{/if}>直接</option>
                <option value="2" {if $content_info.content.if_inerface_check != "1"}selected="selected"{/if}>审核</option>
              </select>
              权限:
              <select id="content[if_inerface_privilege]" name="content[if_inerface_privilege]" class="select" style="width:60px;" class="select">
                <option value="1" {if $content_info.content.if_inerface_privilege == "1"}selected="selected"{/if}>游客</option>
                <option value="2" {if $content_info.content.if_inerface_privilege != "1"}selected="selected"{/if}>登录</option>
              </select>
            </span>
            <span id="content[if_inerface]_return" class="prompt"><span class="prompt_primal"></span></span>
          </td>
        </tr>
        <tr align="left">
          <td class="block_left">跳转地址</td>
          <td class="block_right" colspan="3">
            <input type="checkbox" id="content[if_turn]" name="content[if_turn]" value="1" {if $content_info.content.if_turn == "1"}checked="checked"{/if} onclick="xajax_content_if_turn('content[if_turn_detail]', this.checked, 'form_detail');">
            <span id="content[if_turn_detail]" style="display:none;">
              <select id="content[if_turn_type]" name="content[if_turn_type]" class="select" style="width:70px;">
                <option value="1" {if $content_info.content.if_turn_type != "2"}selected="selected"{/if}>_self</option>
                <option value="2" {if $content_info.content.if_turn_type == "2"}selected="selected"{/if}>_blank</option>
              </select>
              <input type="text" id="content[if_turn_url]" name="content[if_turn_url]" size="100" style="width:520px;" maxlength="255" value="{$content_info.content.if_turn_url}" class="input" />
            </span>
            <span id="content[if_turn_detail]_return" class="prompt"><span class="prompt_primal"></span></span>
          </td>
        </tr>
        <tr>
          <td colspan="4" class="block_right">
          <!-- form_detail begin -->
          <div id="form_detail" {if $content_info.content.if_turn == "1"}style="display:none;"{/if}>

            <div id="area_model_single"></div>

            <div id="area_model_multi"></div>

          </div>
          <!-- form_detail end -->
          </td>
        </tr>
        <tr>
          <td colspan="4" align="center" class="block_footer">
            <div id="area_content_submit" name="area_content_submit"></div>
          </td>
        </tr>
      </table>
      </form>
      </div>
      {else}
      <div class="right_table">
      <table width="100%" cellpadding="3" cellspacing="0" border="0" align="center" class="current_place">
        <tr>
          <td align="left" nowrap>&nbsp;
            <a href="{$control_admin}" target="_self" class="current_place">后台管理</a>
            &raquo; <a href="{$control_admin}?act=content&channel_id=0" target="_self" class="current_place">内容管理</a>
            {foreach name=channel_path from=$channel_path item=channel_path}
            &raquo; <a href="{$control_admin}?act=content&channel_id={$channel_path.id}" target="_self" class="current_place">{$channel_path.name|str_entag:'space,br'}</a>
            {/foreach}
          </td>
          <td align="right" nowrap>
            {if $get.channel_id != "0" && $channel_info.if_add == "1"}
            [
            <a href="{$control_admin}?act=content&ope=add&channel_id={$channel_info.id}&pag={$get.pag}" target="_self" class="current_place">添加内容</a>
            <a href="{$control_admin}?act=content&channel_id={$channel_info.id}&pag={$get.pag}" target="_self" class="current_place">内容列表</a>
            ]
            {else}
            &nbsp;
            {/if}
          </td>
        </tr>
      </table>
      </div>

      {if $admin.ag_privilege.content == "1"}

      {if $channel_sub|@is_array && $channel_sub|@count > 0}
      <div class="space"></div>
      <div class="right_table">
      <table width="100%" cellpadding="3" cellspacing="0" border="0" align="center" class="block_group">
        <tr align="left" class="block_header">
          <td>下属频道</td>
        </tr>
        <tr class="block_list">
          <td align="left">
          {foreach name=channel_sub from=$channel_sub item=channel_sub}
            <a href="{$control_admin}?act=content&channel_id={$channel_sub.id}" target="_self">{$channel_sub.name}</a>
            {if $smarty.foreach.channel_sub.last != true}│{/if}
          {/foreach}
          </td>
        </tr>
      </table>
      </div>
      {/if}
      
      {if ($get.channel_id != "0" && $channel_info.if_add == "1") || ($content_list|@is_array && $content_list|@count > 0)}
      <div class="space"></div>
      <div class="right_table">
      <form action="{$control_admin}?act=content&ope=del&pag={$get.pag}" method="post" id="content_list" name="content_list">
      <table width="100%" cellpadding="3" cellspacing="0" border="0" align="center" class="block_group">
        <tr align="left" class="block_header">
          <td colspan="11">内容列表</td>
        </tr>
        <tr class="block_title">
          <td width="5%" nowrap>选择</td>
          <td width="5%" nowrap>S.ID</td>
          <td width="5%" nowrap>C.ID</td>
          <td width="30%" align="left" nowrap>标题</td>
          <td width="15%" nowrap>作者</td>
          <td width="8%" nowrap>时间</td>
          <td width="5%" nowrap>浏览</td>
          <td width="5%" nowrap>转向</td>
          <td width="5%" nowrap>状态</td>
          <td width="5%" nowrap>置顶</td>
          <td width="12%" nowrap>操作</td>
        </tr>
        {foreach name=content_list from=$content_list item=item}
        <tr align="center" class="block_list" onmouseover="this.className='block_list_over'" onmouseout="this.className='block_list'">
          <td nowrap><input type="checkbox" id="choice[{$item.content_id}]" name="choice[{$item.content_id}]" handle="topic" value="{$item.content_id}"></td>
          <td nowrap>{$item.scheduler_id}</td>
          <td nowrap>{$item.content_id}</td>
          <td align="left">
            {if $channel_info.id == "0"}
            <a href="{$control_admin}?act=content&channel_id={$item.channel_id}" target="_self" title="显示频道[{$item.channel_name}]所有内容..."><span class="salient">[{$item.channel_name}]</span></a>
            {/if}
            <a href="{$control_admin}?act=content&ope=amend&scheduler_id={$item.scheduler_id}&pag={$get.pag}" target="_self" title="{$item.subject|str_entag:'space,br'}">{$item.phrase|str_entag:'space,br'}</a>
          </td>
          <td nowrap><a href="{$control_admin}?act=member&ope=amend&mid={$item.post_id}" target="_self" title="{$item.subject|str_entag:'space,br'}">{$item.post_username}</a></td>
          <td nowrap><span title="{$item.post_time|format_date:"%Y-%m-%d %H:%M:%S"}" class="smalltext">{$item.post_time|format_date:"%Y-%m-%d"}</span></td>
          <td nowrap>{$item.click}</td>
          <td nowrap>
            <a href="{$control_admin}?act=content&ope=amend&scheduler_id={$item.scheduler_id}&pag={$get.pag}" target="_self">
            {if $item.if_turn == "1"}<span class="state_yes">是</span>{else}<span class="state_cancel">否</span>{/if}
            </a>
          </td>
          <td nowrap>
            {if $item.if_enable == "1"}
              <span style="color:#00AA00;" title="当前状态为开启!">开</span>
              <a href="{$control_admin}?act=content&ope=if_enable&scheduler_id={$item.scheduler_id}&if_enable=2&pag={$get.pag}" target="_self"><span style="color:#898989;" title="将状态更改为关闭!">关</span></a>
              <a href="{$control_admin}?act=content&ope=amend&scheduler_id={$item.scheduler_id}&pag={$get.pag}" target="_self"><span style="color:#898989;" title="进入将状态更改为定时!">时</span></a>
            {elseif $item.if_enable == "2"}
              <a href="{$control_admin}?act=content&ope=if_enable&scheduler_id={$item.scheduler_id}&if_enable=1&pag={$get.pag}" target="_self"><span style="color:#898989;" title="将状态更改为开启!">开</span></a>
              <span style="color:#EA7408;" title="当前状态为关闭!">关</span>
              <a href="{$control_admin}?act=content&ope=amend&scheduler_id={$item.scheduler_id}&pag={$get.pag}" target="_self"><span style="color:#898989;" title="进入将状态更改为定时!">时</span></a>
            {else}
              <a href="{$control_admin}?act=content&ope=if_enable&scheduler_id={$item.scheduler_id}&if_enable=1&pag={$get.pag}" target="_self"><span style="color:#898989;" title="将状态更改为开启!">开</span></a>
              <a href="{$control_admin}?act=content&ope=if_enable&scheduler_id={$item.scheduler_id}&if_enable=2&pag={$get.pag}" target="_self"><span style="color:#898989;" title="将状态更改为关闭!">关</span></a>
              <a href="{$control_admin}?act=content&ope=amend&scheduler_id={$item.scheduler_id}&pag={$get.pag}" target="_self"><span style="color:#FFBC2D;" title="进入将状态更改为定时!">时</span></a>
            {/if}
          </td>
          <td nowrap>
            {if $item.if_top == "1"}
              <span style="color:#00AA00;" title="当前置顶为开启!">开</span>
              <a href="{$control_admin}?act=content&ope=if_top&scheduler_id={$item.scheduler_id}&if_top=2&pag={$get.pag}" target="_self"><span style="color:#898989;" title="将置顶更改为关闭!">关</span></a>
              <a href="{$control_admin}?act=content&ope=amend&scheduler_id={$item.scheduler_id}&pag={$get.pag}" target="_self"><span style="color:#898989;" title="进入将置顶更改为定时!">时</span></a>
            {elseif $item.if_top == "2"}
              <a href="{$control_admin}?act=content&ope=if_top&scheduler_id={$item.scheduler_id}&if_top=1&pag={$get.pag}" target="_self"><span style="color:#898989;" title="将置顶更改为开启!">开</span></a>
              <span style="color:#EA7408;" title="当前置顶为关闭!">关</span>
              <a href="{$control_admin}?act=content&ope=amend&scheduler_id={$item.scheduler_id}&pag={$get.pag}" target="_self"><span style="color:#898989;" title="进入将置顶更改为定时!">时</span></a>
            {else}
              <a href="{$control_admin}?act=content&ope=if_top&scheduler_id={$item.scheduler_id}&if_top=1&pag={$get.pag}" target="_self"><span style="color:#898989;" title="将状态更改为开启!">开</span></a>
              <a href="{$control_admin}?act=content&ope=if_top&scheduler_id={$item.scheduler_id}&if_top=2&pag={$get.pag}" target="_self"><span style="color:#898989;" title="将状态更改为关闭!">关</span></a>
              <a href="{$control_admin}?act=content&ope=amend&scheduler_id={$item.scheduler_id}&pag={$get.pag}" target="_self"><span style="color:#FFBC2D;" title="进入将状态更改为定时!">时</span></a>
            {/if}
          </td>
          <td nowrap>
            <a href="{$control_admin}?act=content&ope=amend&scheduler_id={$item.scheduler_id}&pag={$get.pag}" target="_self"><img src="{$dir_images_admin}/icon_edit.gif" border="0" alt="改" title="修改" /></a>
            <a href="{$control_admin}?act=content&ope=del&scheduler_id={$item.scheduler_id}&pag={$get.pag}" target="_self" onClick="return confirm('真的要删除记录?')"><img src="{$dir_images_admin}/icon_delete.gif" border="0" alt="删" title="删除记录"></a>
          </td>
        </tr>
        {/foreach}
        <tr class="block_footer">
          <td colspan="11">
          <table width="100%" cellpadding="0" cellspacing="0" border="0" class="table_clean">
            <tr>
              <td align="left">
              <input type="button" id="check_on" name="check_on" value="全选" class="button">
              <input type="button" id="check_off" name="check_off" value="不选" class="button">
              <input type="button" id="check_toggle" name="check_toggle" value="反选" class="button">
              </td>
              <td align="right">
              <input type="submit" value="删除" class="button" onClick="return confirm('真的要删除记录?')">
              </td>
            </tr>
          </table>
          </td>
        </tr>
      </table>
      </form>
      <table width="100%" cellpadding="3" cellspacing="0" border="0" align="center">
        <tr>
          <td align="left">&nbsp;</td>
          <td align="right">
            <span class="pagination_post_list">
              <span class="pagelink_side" title="Total record{$pagination.record_total}">{$pagination.record_total}</span>
              <span class="pagelink_side" title="Current page{$pagination.page_current}/Page{$pagination.page_total}"><font color="#EA7408">{$pagination.page_current}</font>/{$pagination.page_total}</span>
              {if $pagination.page_listbegin != ""}<span class="pagelink_side" title="Go to first page"><a href="{$pagination.url|print_format:$pagination.page_listbegin}" target="_self" class="pagehref">&laquo;</a></span>{/if}
              {if $pagination.page_listbegin_more != ""}<span class="pagelink_side" title="Jump {$pagination.page_listnum/2|@floor} page"><a href="{$pagination.url|print_format:$pagination.page_listbegin_more}" target="_self" class="pagehref">...</a></span>{/if}
              {if $pagination.page_previous != ""}<span class="pagelink_side" title="Previous page"><a href="{$pagination.url|print_format:$pagination.page_previous}" target="_self" class="pagehref">&#8249;</a></span>{/if}
              {foreach name=page_list from=$pagination.page_list item=page_list}
                {if $page_list.if_current == "1"}
                  <span class="pagelink_current" title="Current page{$page_list.page}"><font color="#EA7408">{$page_list.page}</font></span>
                {else}
                  <span class="pagelink" title="{$page_list.page}"><a href="{$pagination.url|print_format:$page_list.page}" target="_self" class="pagehref">{$page_list.page}</a></span>
                {/if}
              {/foreach}
              {if $pagination.page_next != ""}<span class="pagelink_side" title="Next page"><a href="{$pagination.url|print_format:$pagination.page_next}" target="_self" class="pagehref">&#8250;</a></span>{/if}
              {if $pagination.page_listend_more != ""}<span class="pagelink_side" title="Jump {$pagination.page_listnum/2|@floor} page"><a href="{$pagination.url|print_format:$pagination.page_listend_more}" target="_self" class="pagehref">...</a></span>{/if}
              {if $pagination.page_listend != ""}<span class="pagelink_side" title="Go to last page"><a href="{$pagination.url|print_format:$pagination.page_listend}" target="_self" class="pagehref">&raquo;</a></span>{/if}
              <select onchange="self.location.href=this.options[this.selectedIndex].value" class="select">
              {if $pagination.page_selectbegin != ""}<option value="{$pagination.url|print_format:$pagination.page_selectbegin}">{$pagination.page_selectbegin}</option>{/if}
              {if $pagination.page_selectbegin_more != ""}<option value="{$pagination.url|print_format:$pagination.page_selectbegin_more}">...</option>{/if}
              {foreach name=page_select from=$pagination.page_select item=page_select}
                {if $page_select.if_current == "1"}
                  <option value="{$pagination.url|print_format:$page_select.page}" selected="selected">{$page_select.page}</option>
                {else}
                  <option value="{$pagination.url|print_format:$page_select.page}">{$page_select.page}</option>
                {/if}
              {/foreach}
              {if $pagination.page_selectend_more != ""}<option value="{$pagination.url|print_format:$pagination.page_selectend_more}">...</option>{/if}
              {if $pagination.page_selectend != ""}<option value="{$pagination.url|print_format:$pagination.page_selectend}">{$pagination.page_selectend}</option>{/if}
              </select>
            </span>
          </td>
        </tr>
      </table>
      </div>
      {/if}
      {/if}
      {/if}

    </td>
  </tr>
</table>
<div id="test_output" style="text-align:left;"></div>
{include file="pub_footer.htm"}